package com.td.erhome.ui.agency;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.td.erhome.R;
import com.td.erhome.base.BaseActivity;
import com.td.erhome.ui.article.ArticleContentActivity;
import com.td.erhome.utils.CallUtils;

import butterknife.Bind;
import butterknife.OnClick;

public class AgencyActivity extends BaseActivity {

    @Bind(R.id.back)
    ImageView mBack;
    @Bind(R.id.re_title)
    RelativeLayout mReTitle;
    @Bind(R.id.re_contract)
    RelativeLayout mReContract;
    @Bind(R.id.re_procedure)
    RelativeLayout mReProcedure;
    @Bind(R.id.re_mortgage)
    RelativeLayout mReMortgage;
    private Intent mIntent;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_agency;
    }

    @Override
    protected void initView() {
        mIntent = new Intent(this, ArticleContentActivity.class);

    }

    @Override
    protected void releaseResource() {

    }


    @OnClick({R.id.back, R.id.re_contract, R.id.re_procedure, R.id.re_mortgage})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.re_contract:
                CallUtils.call(this, "0282586589");

               /* mIntent.putExtra("url","");
                startActivity(mIntent);*/
                break;
            case R.id.re_procedure:
                CallUtils.call(this, "0282586589");
                /*mIntent.putExtra("url","");
               startActivity(mIntent);*/
                break;
            case R.id.re_mortgage:
                CallUtils.call(this, "0282586589");
                /*mIntent.putExtra("url","");
                startActivity(mIntent);*/
                break;
        }
    }
}
